package com.pineapple.module.core.standards.hormone.service;

import java.sql.Connection;
import java.util.List;

import com.pineapple.module.core.standards.hormone.domain.Hormone;
import com.pineapple.module.core.standards.hormone.domain.HormoneCriteria;
import com.pineapple.module.core.standards.hormone.domain.HormoneSearch;

public class HormoneManager {
	HormoneDAO dao = null;

	public HormoneManager(){
		dao = new HormoneDAO();
	}

	public List<HormoneSearch> search(HormoneCriteria criteria,Connection conn)throws Exception{
		return dao.search(criteria, conn);
	}

	public void add(Connection conn,Hormone user)throws Exception{
		dao.add(conn, user);
	}
	public void edit(Connection conn,Hormone user)throws Exception{
		dao.edit(conn, user);
	}
	public void delete(Connection conn,String userIds)throws Exception{
		dao.delete(conn, userIds);
	}
	public Hormone searchById(Connection conn,int id)throws Exception{
		return dao.searchById(conn, id);
	}

}
